package com.zzyl.nursing.job;

import com.zzyl.nursing.service.IDeviceDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("cleanHistoryDeviceData")
public class cleanHistoryDeviceData {
    @Autowired
    private IDeviceDataService deviceDataService;
    public void cleanData(Integer minute){
        deviceDataService.cleanOldData(minute);

    }
}
